package com.zyz.C_数组;

/**
 * @author: vick
 * @Date: 2025/3/13
 * @Description:
 * @version: 1.0
 */
public class Demo2 {
    public static void main(String[] args) {
        int[] nums = {11, 22, 33, 44, 55};

        System.out.println("===普通for循环==");
        for (int i = 0; i < nums.length; i++) {
            System.out.println(nums[i]);
        }

        System.out.println("===增强for循环==");
        for (int num : nums) {
            System.out.println(num);
        }
    }
}
